package com.mall.goods.feign;

import com.mall.common.util.RespResult;
import com.mall.goods.model.Product;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author Darren
 * @date 2022-08-26 10:41
 * Description：
 */
@FeignClient(value = "mall-goods")
@RequestMapping("/spu")
public interface SpuFeign {

    @GetMapping("/product/{spuId}")
    @ApiOperation(value = "查询商品详情")
    RespResult<Product> findBySpuId(@PathVariable("spuId") String spuId);

}
